home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form IconAnimationForm
- Caption = "IconAnimation"
- ClientHeight = 1140
- ClientLeft = 2925
- ClientTop = 2160
- ClientWidth = 2490
- Height = 1830
- Left = 2865
- LinkTopic = "Form1"
- ScaleHeight = 1140
- ScaleWidth = 2490
- Top = 1530
- Width = 2610
- Begin VB.OptionButton Choice
- Caption = "Signal"
- Height = 255
- Index = 2
- Left = 840
- TabIndex = 2
- Top = 840
- Width = 855
- End
- Begin VB.OptionButton Choice
- Caption = "Flame"
- Height = 255
- Index = 1
- Left = 840
- TabIndex = 1
- Top = 480
- Width = 855
- End
- Begin VB.OptionButton Choice
- Caption = "Circle"
- Height = 255
- Index = 0
- Left = 840
- TabIndex = 0
- Top = 120
- Value = -1 'True
- Width = 855
- End
- Begin VB.Timer Timer1
- Interval = 100
- Left = 4920
- Top = 1560
- End
- Begin VB.Image Flame
- Height = 480
- Index = 5
- Left = 3480
- Picture = "ICOANIM.frx":0000
- Top = 1560
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Flame
- Height = 480
- Index = 6
- Left = 3960
- Picture = "ICOANIM.frx":030A
- Top = 1560
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Flame
- Height = 480
- Index = 7
- Left = 4440
- Picture = "ICOANIM.frx":0614
- Top = 1560
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Flame
- Height = 480
- Index = 4
- Left = 3000
- Picture = "ICOANIM.frx":091E
- Top = 1560
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Flame
- Height = 480
- Index = 3
- Left = 4440
- Picture = "ICOANIM.frx":0C28
- Top = 960
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Flame
- Height = 480
- Index = 2
- Left = 3960
- Picture = "ICOANIM.frx":0F32
- Top = 960
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Flame
- Height = 480
- Index = 1
- Left = 3480
- Picture = "ICOANIM.frx":123C
- Top = 960
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Flame
- Height = 480
- Index = 0
- Left = 3000
- Picture = "ICOANIM.frx":1546
- Top = 960
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Signal
- Height = 480
- Index = 2
- Left = 3960
- Picture = "ICOANIM.frx":1850
- Top = 2160
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Signal
- Height = 480
- Index = 1
- Left = 3480
- Picture = "ICOANIM.frx":1B5A
- Top = 2160
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Signal
- Height = 480
- Index = 0
- Left = 3000
- Picture = "ICOANIM.frx":1E64
- Top = 2160
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 7
- Left = 4440
- Picture = "ICOANIM.frx":216E
- Top = 480
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 6
- Left = 3960
- Picture = "ICOANIM.frx":2478
- Top = 480
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 5
- Left = 3480
- Picture = "ICOANIM.frx":2782
- Top = 480
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 4
- Left = 3000
- Picture = "ICOANIM.frx":2A8C
- Top = 480
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 3
- Left = 4440
- Picture = "ICOANIM.frx":2D96
- Top = 0
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 2
- Left = 3960
- Picture = "ICOANIM.frx":30A0
- Top = 0
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 1
- Left = 3480
- Picture = "ICOANIM.frx":33AA
- Top = 0
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Image Ring
- Height = 480
- Index = 0
- Left = 3000
- Picture = "ICOANIM.frx":36B4
- Top = 0
- Visible = 0 'False
- Width = 480
- End
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuFileExit
- Caption = "E&xit"
- End
- End
- Attribute VB_Name = "IconAnimationForm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Const KIND_RING = 0
- Const KIND_FLAME = 1
- Const KIND_SIGNAL = 2
- Dim Kind As Integer
- Dim Idx As Integer
- Private Sub Choice_Click(Index As Integer)
- Kind = Index
- Idx = 0
- Select Case Kind
- Case KIND_RING
- Timer1.Interval = 100
- Case KIND_FLAME
- Timer1.Interval = 50
- Case KIND_SIGNAL
- Timer1.Interval = 1000
- End Select
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
- Private Sub mnuFileExit_Click()
- Unload Me
- End Sub
- Private Sub Timer1_Timer()
- Select Case Kind
- Case KIND_RING
- Icon = Ring(Idx).Picture
- Idx = (Idx + 1) Mod 8
- Case KIND_FLAME
- Icon = Flame(Int(8 * Rnd)).Picture
- Case KIND_SIGNAL
- Icon = Signal(Idx).Picture
- If Idx = 1 Then
- Timer1.Interval = 1000
- Else
- Timer1.Interval = 2000
- End If
- Idx = (Idx + 1) Mod 3
- End Select
- End Sub
-